﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageLayout.master" AutoEventWireup="true" CodeBehind="frmHocvien.aspx.cs" Inherits="BVVD_Website.ql_hoc_vien.frmHocvien" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="5">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel runat="server" ID="pnlAjax" LoadingPanelID="RadAjaxLoadingPanel1">
        <div id="Div1" class="mpBottomContent" runat="server">
            <asp:Label runat="server" ID="lblMenu" Style="margin: 0 auto 0 auto; font-family: 'Microsoft Sans Serif'; font-size: larger; color: forestgreen" Text="DANH SÁCH HỌC VIÊN"></asp:Label>

            <table style="margin: 0 auto 0 auto; border: 5px thin red; width: 90% !important; padding: 5px 5px 5px 5px">
                <caption style="float: left">
                </caption>
                <tr>
                    <td>
                        <telerik:RadGrid ID="grvHocvien" Skin="Hay" AllowFilteringByColumn="true" ClientSettings-ColumnsReorderMethod="Reorder" ClientSettings-AllowColumnsReorder="true" ClientSettings-Animation-AllowColumnReorderAnimation="true" ClientSettings-Animation-ColumnReorderAnimationDuration="300" PageSize="15" AllowSorting="true" AutoGenerateColumns="false" AllowPaging="true" ClientSettings-AllowDragToGroup="true" runat="server" OnNeedDataSource="grvHocvien_NeedDataSource" OnItemDataBound="grvHocvien_ItemDataBound" OnInsertCommand="grvHocvien_InsertCommand" OnUpdateCommand="grvHocvien_UpdateCommand" OnDeleteCommand="grvHocvien_DeleteCommand" OnItemCommand="grvHocvien_ItemCommand">

                            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                            <MasterTableView CommandItemDisplay="Top" CssClass="MasterClass" ShowFooter="true" EditMode="PopUp" Summary="SUMMARY" ShowHeadersWhenNoRecords="true"
                                DataKeyNames="MAHV">
                                <CommandItemSettings  AddNewRecordText="Thêm mới" RefreshText="Làm mới danh sách" ExportToPdfText="Xuất file dạng PDF" ShowExportToPdfButton="true"></CommandItemSettings>
                                <CommandItemSettings ExportToExcelText="Xuất file dạng Excel" ShowExportToExcelButton="true"></CommandItemSettings>

                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

                                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True"></ExpandCollapseColumn>
                                <Columns>

                                    <telerik:GridBoundColumn UniqueName="RECID" EditFormColumnIndex="1" Display="false" ReadOnly="true" HeaderText="RECID" DataField="RECID">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                        <HeaderStyle ForeColor="Silver" Width="20px"></HeaderStyle>
                                        <ItemStyle ForeColor="Gray"></ItemStyle>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="MAHV" ItemStyle-HorizontalAlign="Left" FilterControlWidth="70%" HeaderStyle-Width="10%" HeaderText="Mã học viên" DataField="MAHV">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="HODEM" ItemStyle-HorizontalAlign="Left" FilterControlWidth="70%" HeaderStyle-Width="14%" HeaderText="Họ" DataField="HODEM">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="TENHV" ItemStyle-HorizontalAlign="Left" FilterControlWidth="70%" HeaderStyle-Width="18%" HeaderText="Tên" DataField="TENHV">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridDateTimeColumn UniqueName="NGAYSINH" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" FilterControlWidth="85%" ItemStyle-Width="100%" HeaderStyle-Width="14%" HeaderText="Ngày sinh" DataField="NGAYSINH"
                                        DataFormatString="{0:dd/MM/yyyy}">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridDateTimeColumn>


                                    <telerik:GridBoundColumn UniqueName="DIACHI" ItemStyle-HorizontalAlign="Left" FilterControlWidth="70%" HeaderStyle-Width="25%" HeaderText="Địa chỉ" DataField="DIACHI">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="QUOCGIA" ItemStyle-HorizontalAlign="Left" Display="false" HeaderText="Quốc tịch" DataField="QUOCTICH">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="TONGIAO" Display="false" HeaderText="Tôn giáo" DataField="TONGIAO">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="NAMHOC" Display="false" HeaderText="Năm học" DataField="NAMHOC">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="MATR" Display="false" HeaderText="Mã trường" DataField="MATR">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="GIOITINH" Display="false" HeaderText="Giới tính" DataField="GIOITINH">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="DANTOC" Display="false" HeaderText="Dân tộc" DataField="DANTOC">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="CHUCVU" Display="false" HeaderText="Chức vụ" DataField="CHUCVU">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="CHUCDANH" Display="false" HeaderText="Chức danh" DataField="CHUCDANH">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="TRINHDO" Display="false" HeaderText="Trình độ" DataField="TRINHDO">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="CHUYENMON" Display="false" HeaderText="Chuyên môn" DataField="CHUYENMON">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="THAMNIEN_Y" Display="false" HeaderText="Thâm niên năm" DataField="THAMNIEN_Y">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="THAMNIEN_M" Display="false" HeaderText="Thâm niên tháng" DataField="THAMNIEN_M">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="LOAIGIAY" Display="false" HeaderText="Loại giấy" DataField="LOAIGIAY">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="DANGVIEN" Display="false" HeaderText="Đảng viên" DataField="DANGVIEN">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="DOANVIEN" Display="false" HeaderText="Đoàn viên" DataField="DOANVIEN">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="THUONGBINH" Display="false" HeaderText="Thương binh" DataField="THUONGBINH">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn UniqueName="CONLIETSY" Display="false" HeaderText="Con liệt sỹ" DataField="CONLIETSY">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridTemplateColumn UniqueName="TRANGTHAI" Display="false" HeaderText="Trạng thái" DataField="TRANGTHAI">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTRANGTHAI" Text='<%# DataBinder.Eval(Container.DataItem,"TRANGTHAI").ToString().Equals("1")?"ACTIVE":"CLOSED" %>'></asp:Label>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>

                                    <telerik:GridBoundColumn UniqueName="Mobile" FilterControlWidth="70%" Display="false" HeaderStyle-Width="12%" HeaderText="Mobile" DataField="Mobile">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="COQUANCT" ItemStyle-HorizontalAlign="Left" FilterControlWidth="70%" HeaderStyle-Width="12%" HeaderText="Cơ quan" DataField="COQUANCT">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>

                                    <telerik:GridEditCommandColumn EditText="Sửa" UniqueName="btnEdit" ButtonType="ImageButton" ItemStyle-Width="30" HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30">
                                    </telerik:GridEditCommandColumn>

                                    <telerik:GridButtonColumn CommandName="Delete"  ButtonType="ImageButton" HeaderText="Xóa" ItemStyle-Width="30" HeaderStyle-Width="30" ConfirmDialogType="RadWindow" ConfirmTextFormatString="Bạn chắc chắn muốn xóa bản ghi : \n\n \t Mã học viên : {0} <br> \tTên học viên :  {1} {2} \n " ConfirmTextFields="MAHV, HODEM, TENHV" ConfirmTitle="Xác nhận xóa" ConfirmText="Xóa, Hủy" Text="Xóa" UniqueName="btnDelete">
                                    </telerik:GridButtonColumn>
                                    <telerik:GridBinaryImageColumn UniqueName="PICTURE" DataField="PICTURE" FooterStyle-CssClass="hideColumn" FooterStyle-Width="0" HeaderStyle-Width="0" ItemStyle-Width="0" ItemStyle-CssClass="hideColumn" AllowFiltering="false" HeaderStyle-CssClass="hideColumn" ResizeMode="Fit" DataType="System.Byte" ItemStyle-Wrap="true" ImageWidth="40" ImageHeight="60" AutoAdjustImageControlSize="true" Display="true" HeaderText="Ảnh">
                                    </telerik:GridBinaryImageColumn>
                                </Columns>
                                <EditFormSettings EditFormType="Template" PopUpSettings-ShowCaptionInEditForm="true" InsertCaption="Nhập thông tin học viên" PopUpSettings-Modal="true" CaptionFormatString="Mã học viên {0}"
                                    CaptionDataField="MAHV" PopUpSettings-Width="920" PopUpSettings-Height="500" PopUpSettings-ScrollBars="Auto" PopUpSettings-ZIndex="4000">
                                    <FormTemplate>

                                        <div id="rfd-demo-zone" style="overflow: no-display; border: solid; border-color: whitesmoke; border-width: 5px; padding: 6px 6px 6px 6px">
                                            <table width="900" border="1" style="border-collapse: collapse; font: Arial Narrow; text-align: left">
                                                <tr style="text-align:left">
                                                    <td width="34%" style="top:inherit">
                                                        <table width="100%" border="1" cellspacing="10px">
                                                            <tr>
                                                                <td>Mã học viên</td>
                                                                <td>
                                                                    <telerik:RadTextBox  runat="server" Skin="Telerik" ID="txtMAHV" Text='<%# Bind("MAHV") %>'>
                                                                    </telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator28" Display="Dynamic" runat="server" ControlToValidate="txtMAHV" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Họ đệm</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" ID="txtHODEM" Skin="Telerik" Text='<%# Bind("HODEM") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" runat="server" ControlToValidate="rdpNGAYSINH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tên</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" ID="txtTENHV" Skin="Telerik" Text='<%# Bind("TENHV") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTENHV" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Ngày sinh</td>
                                                                <td>
                                                                    <telerik:RadDatePicker runat="server" Skin="Telerik" DateInput-DisplayDateFormat="dd/MM/yyyy" ID="rdpNGAYSINH" DbSelectedDate='<%# Bind("NGAYSINH") %>'></telerik:RadDatePicker>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" runat="server" ControlToValidate="rdpNGAYSINH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Giới tính</td>
                                                                <td>
                                                                    <telerik:RadDropDownList runat="server" Skin="Telerik" DefaultMessage="Chọn" ID="ddlGIOITINH"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" Display="Dynamic" runat="server" ControlToValidate="ddlGIOITINH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Loại giấy</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblLOAIGIAY" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="CMND" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="Hộ chiếu" Value="0"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator23" Display="Dynamic" runat="server" ControlToValidate="rblLOAIGIAY" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>CMND/Hộ chiếu</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="rntxtCMND" Text='<%# Bind("SOCMND") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" Display="Dynamic" runat="server" ControlToValidate="rntxtCMND" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Ngày cấp</td>
                                                                <td>
                                                                    <telerik:RadDatePicker Skin="Telerik" runat="server" DateInput-DisplayDateFormat="dd/MM/yyyy" ID="rdpNGAYCAP" DbSelectedDate='<%# Bind("NGAYCAP") %>'></telerik:RadDatePicker>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator7" Display="Dynamic" runat="server" ControlToValidate="rdpNGAYCAP" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Nơi cấp</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtNOICAP" Text='<%# Bind("NOICAP") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" Display="Dynamic" runat="server" ControlToValidate="txtNOICAP" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Địa chỉ</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtDIACHI" TextMode="MultiLine" Text='<%# Bind("DIACHI") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" Display="Dynamic" runat="server" ControlToValidate="txtDIACHI" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Hộ khẩu</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtHOKHAU" TextMode="MultiLine" Text='<%# Bind("HOKHAU") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" Display="Dynamic" runat="server" ControlToValidate="txtHOKHAU" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Quê quán</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtQUEQUAN" TextMode="MultiLine" Text='<%# Bind("QUEQUAN") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" Display="Dynamic" runat="server" ControlToValidate="txtQUEQUAN" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                 <td>Năm học</td>
                                                                <td>
                                                                    <telerik:RadDropDownList runat="server" DefaultMessage="Chọn" ID="ddlNAMHOC" DropDownHeight="200" Skin="Telerik"></telerik:RadDropDownList>
                                                                    
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tên trường</td>
                                                                <td>
                                                                    <telerik:RadDropDownList runat="server" DefaultMessage="Chọn" ID="ddlTENTRUONG" DropDownHeight="200" Skin="Telerik"></telerik:RadDropDownList>
                                                                    
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">&nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td width="34%">
                                                        <table width="100%" border="1" cellspacing="20">
                                                            <tr>
                                                                <td>Tel</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtTEL" Text='<%# Bind("TEL") %>'></telerik:RadTextBox>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator12" Display="Dynamic" runat="server" ControlToValidate="txtTEL" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Mobile</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtMOBILE" Text='<%# Bind("MOBILE") %>'></telerik:RadTextBox>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator13" Display="Dynamic" runat="server" ControlToValidate="txtMOBILE" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Email</td>
                                                                <td>
                                                                    <telerik:RadTextBox EmptyMessage="ex. yourname@domain.com" Skin="Telerik" runat="server" ID="txtEMAIL" Text='<%# Bind("EMAIL") %>'></telerik:RadTextBox>
                                                                    <asp:RegularExpressionValidator ID="emailValidator" runat="server" Display="Dynamic"
                                                                        ErrorMessage='<img alt="re-check" src="/images/incorrect.png"  />' ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"
                                                                        ControlToValidate="txtEMAIL">
                                                                    </asp:RegularExpressionValidator>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator14" Display="Dynamic" runat="server" ControlToValidate="txtEMAIL" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Cơ quan</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" Skin="Telerik" ID="txtCOQUAN" Text='<%# Bind("COQUANCT") %>'></telerik:RadTextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator18" Display="Dynamic" runat="server" ControlToValidate="txtCOQUAN" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Quốc tịch</td>
                                                                <td>
                                                                    <telerik:RadDropDownList runat="server" DefaultMessage="Chọn" ID="ddlQUOCTICH" DropDownHeight="200" Skin="Telerik"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator15" Display="Dynamic" runat="server" ControlToValidate="ddlQUOCTICH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Dân tộc</td>
                                                                <td>
                                                                    <telerik:RadDropDownList runat="server" DefaultMessage="Chọn" ID="ddlDANTOC" DropDownHeight="200" Skin="Telerik"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator16" Display="Dynamic" runat="server" ControlToValidate="ddlDANTOC" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tôn giáo</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlTONGIAO" DefaultMessage="Chọn" DropDownHeight="200" Skin="Telerik" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator17" Display="Dynamic" runat="server" ControlToValidate="ddlTONGIAO" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Chức vụ</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlCHUCVU" DefaultMessage="Chọn" DataValueField="MADM" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator19" Display="Dynamic" runat="server" ControlToValidate="ddlCHUCVU" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Chức danh</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlCHUCDANH" DefaultMessage="Chọn" DataValueField="MADM" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator20" Display="Dynamic" runat="server" ControlToValidate="ddlCHUCDANH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Trình độ</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlTRINHDO" DataValueField="MADM" DefaultMessage="Chọn" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator21" Display="Dynamic" runat="server" ControlToValidate="ddlTRINHDO" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Chuyên môn</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlCHUYENMON" DataValueField="MADM" DefaultMessage="Chọn" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator22" Display="Dynamic" runat="server" ControlToValidate="ddlCHUYENMON" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Thâm niên năm</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlTHAMNIEN_Y" DataValueField="MADM" DefaultMessage="Chọn" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator27" Display="Dynamic" runat="server" ControlToValidate="rnbTHAMNIEN" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Thâm niên tháng</td>
                                                                <td>
                                                                    <telerik:RadDropDownList ID="ddlTHAMNIEN_M" DataValueField="MADM" DefaultMessage="Chọn" DropDownHeight="200" Skin="Telerik" DataTextField="TENDM" runat="server"></telerik:RadDropDownList>                                                                    
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Khen thưởng</td>
                                                                <td>
                                                                    <telerik:RadTextBox runat="server" ID="txtKHENTHUONG" Skin="Telerik" TextMode="MultiLine" Text='<%# Bind("KHENTHUONG")  %>'></telerik:RadTextBox></td>
                                                            </tr>
                                                            <tr>
                                                                <td>Kỷ luật</td>
                                                                <td>
                                                                    <telerik:RadTextBox ID="txtKYLUAT" runat="server" Skin="Telerik" TextMode="MultiLine" Text='<%# Bind("KYLUAT")  %>'></telerik:RadTextBox></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td width="32%">                                                        
                                                        <table width="100%" border="1" cellspacing="20">
                                                            <tr>
                                                                <td colspan="2">
                                                                    <telerik:RadBinaryImage runat="server" ID="rbiPICTURE" ResizeMode="Fit" DataValue='<%# Eval("PICTURE") %>' AlternateText="Chưa có ảnh" Width="150" Height="220" />
                                                                    <telerik:RadAsyncUpload InputSize="10" OnClientValidationFailed="OnClientValidationFailed" Width="20" ID="rauUpload" Localization-Cancel="Hủy" Localization-Remove="Xóa" Localization-Select="Upload" Skin="Metro" MaxFileInputsCount="1" AllowedFileExtensions="jpg,jpeg,png,gif" runat="server"></telerik:RadAsyncUpload>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Đảng viên</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblDANGVIEN" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Có" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="Không" Value="0" Selected="True"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator5" Display="Dynamic" runat="server" ControlToValidate="rblDANGVIEN" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Ngày vào Đảng</td>
                                                                <td>
                                                                    <telerik:RadDatePicker MinDate="01/01/0001" Skin="Telerik" DateTimeWatermarkContent="" runat="server" DateInput-DisplayDateFormat="dd/MM/yyyy" ID="rdpNGAYVAODANG" DbSelectedDate='<%# Bind("NGAYVAODANG") %>'></telerik:RadDatePicker>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Đoàn viên</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblDOANVIEN" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Có" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="Không" Value="0" Selected="True"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator24" Display="Dynamic" runat="server" ControlToValidate="rblDOANVIEN" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Ngày vào Đoàn</td>
                                                                <td>
                                                                    <telerik:RadDatePicker Skin="Telerik" MinDate="01/01/0001" runat="server" DateTimeWatermarkContent="" DateInput-DisplayDateFormat="dd/MM/yyyy" ID="rdpNGAYDOANVIEN" DbSelectedDate='<%# Bind("NGAYDOANVIEN") %>'></telerik:RadDatePicker>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Thương binh</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblTHUONGBINH" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Có" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="Không" Value="0" Selected="True"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator25" Display="Dynamic" runat="server" ControlToValidate="rblTHUONGBINH" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Con liệt sỹ</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblLIETSY" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Có" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="Không" Value="0" Selected="True"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator26" Display="Dynamic" runat="server" ControlToValidate="rblLIETSY" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />'> </asp:RequiredFieldValidator>--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Ghi chú</td>
                                                                <td>
                                                                    <telerik:RadTextBox ID="txtGHICHU" runat="server" Skin="Telerik" TextMode="MultiLine" Text='<%# Bind("GHICHU")  %>'></telerik:RadTextBox></td>
                                                            </tr>
                                                            <tr>
                                                                <td>Trạng thái</td>
                                                                <td>
                                                                    <asp:RadioButtonList runat="server" ID="rblTRANGTHAI" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="Mở" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Đóng" Value="0"></asp:ListItem>
                                                                    </asp:RadioButtonList>

                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                <td colspan="3" style="text-align: center">
                                                    <br />
                                                    <asp:LinkButton ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Thêm mới" : "Cập nhật" %>'
                                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:LinkButton>&nbsp;
                                                    <asp:LinkButton ID="btnCancel" Text="Hủy" runat="server" CausesValidation="False"
                                                        CommandName="Cancel"></asp:LinkButton>
                                                </td>
                                            </tr>
                                            </table>
                                        </div>

                                    </FormTemplate>
                                </EditFormSettings>
                            </MasterTableView>
                            <ClientSettings>
                                <ClientEvents OnPopUpShowing="PopUpShowing" />
                                <ClientEvents OnRowDblClick="RowDblClick" />
                                <Selecting AllowRowSelect="true" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                            <ExportSettings Excel-Format="Biff" Pdf-DefaultFontFamily="Arial" FileName="Mydata" IgnorePaging="false" Excel-AutoFitImages="true" Excel-FileExtension="xls" HideStructureColumns="true"></ExportSettings>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
        </div>

        <telerik:RadNotification ID="rnAlert" runat="server" Width="300" EnableRoundedCorners="true" Position="TopRight"
            EnableShadow="true" Skin="Hay" Overlay="true" ContentScrolling="Auto" Animation="Fade" AnimationDuration="1000" Title="Thông báo">
        </telerik:RadNotification>
    </telerik:RadAjaxPanel>
</asp:Content>
